a,
a:visited, 
a:focus {
	text-decoration: none;
	color: #666;
}
a:hover{
	color: #000;
	text-decoration: none;
}
ul,
li,
ol {
	list-style: none;
	background: transparent;
	margin-bottom:0;
}

.container {
    width: 1200px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    &::before,
    &::after {
        display: table;
        content: " ";
    }
    &::after {
        clear: both;
    }
}

header {
    color: #333;
    background-color: #fff;
    .logo {
        display: inline-block;
        height: 60px;
        line-height: 60px;
        font-size: 24px;
        font-weight: bold;
        margin-top: 10px;
        margin-bottom: 10px;
        img {
            height: 60px;
        }
    }
    .nav-bar {
        float: right;
        .nav-toggle {
            display: none;
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            font-size: inherit;
            text-rendering: auto;
            line-height: 80px;
            font-size: 2rem;
            font-style: normal;
            &::before {
                content: "\f0c9";
            }
        }
        li {
            list-style: none;
            display: inline-block;
            position: relative;
            a {
                display: inline-block;
                height: 40px;
                line-height: 40px;
                padding: 0 20px;
                color: #666;
                font-size: 16px;
                margin: 20px 0;
            }
            &.active {
                background-color: rgb(255, 0, 0);
                >a {
                    color: #fff;
                }
            }
            .sub-menu {
                position: absolute;
                width: 100%;
                display: none;
                z-index: 9999;
                background: #FFF;
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
                border-top: 2px solid #f00;
                li {
                    display: block;
                    width: 100%;
                    border-bottom: 1px solid #dcdcdc;
                    position: relative;
                    z-index: 9999;
                    a {
                        margin: 0;
                    }
                }
            }
            &:hover {
                background-color: rgba($color: #f00, $alpha: .3);
                >a {
                    color: #fff;
                }
                .sub-menu {
                    display: block;
                }
            }
        }
    }
}

footer {
    margin-top: 30px;
    padding: 30px 0;
    border-top: 1px solid #ddd;
    color: #666;
    background: #f1f1f1;
    .copyright {
        text-align: center;
    }
}

.banner-bg {
    background-repeat: no-repeat;
    background-size: cover;
    height: 140px;
}

.slider {
    .slider-box {
        img {
            height: 100%;
            width: 100%;
        }
    }
    .slider-point {
        li {
            cursor: pointer;
            span {
                display: none;
            }
        }
    }
}

.path {
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    padding: 10px;
    ul {
        display: inline-block;
        li::after {
            padding-left: 10px;
        }
    }
}

#content {
    .title {
        margin-bottom: 10px;
        line-height: 30px;
        padding: 10px 0;
        font-size: 20px;
        border-bottom: 1px solid #dbdbdb;
        text-align: center;
        font-weight: bold;
        margin-bottom: 10px;
    }
    .tags {
        line-height: 30px;
        margin: -5px 0 10px;
        span {
            margin: 0 5px;
            color: #9baab6;
        }
    }
    .header {
        display: grid;
        grid-template-columns: 200px 1fr;
        .thumb {
            text-align: center;
            img {
                width: 120px;
            }
        }
    }
    .links {
        margin: 0 20px 30px; 
        a {
            display: inline-block;
            padding: 4px 10px;
            background-color: #f00;
            color: #fff;
        }
    }
    .content {
        img {
            max-width: 100%;
        }
    }
}

#content-list {
    .item {
        display: grid;
        grid-template-columns: 163px 1fr;
        height: 130px;
        border-bottom: 1px dashed #EBEEF3;
        padding-top: 12px;
        .thumb {
            text-align: center;
            width: 150px;
            height: 100px;
            overflow: hidden;
            img {
                width: 100%;
                height: 100%;
            }
        }
        .info {
            .title {
                font-size: 18px;
                font-weight: bold;
            }
            .desc {
                font-size: 14px;
                color: #999;
                line-height: 1.6;
                margin-top: 6px;
                max-height: 40px;
                overflow: hidden;
            }
            .tags {
                margin-top: 9px;
                font-size: 14px;
                color: #999;
                span {
                    margin: 0 5px;
                }
            }
        }
        &:hover {
            background: #FAFBFC;
        }
    }
}

.theme-list {
    .item {
        box-shadow:rgba(0,0,0,0.2) 0px 2px 10px;
        .thumb {
            background-color: #fff;
            border-radius: 3px;
            box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
            margin-top: 30px;
            padding: 10px;
            position: relative;
            height: 300px;
            overflow: hidden;
            img {
                border-radius: 2px;
                width: 100%;
                min-height: 100%;
                transition: all ease-in-out 2s;
                position: absolute;
                height: auto;
            }
            .fa-search {
                position: absolute;
                bottom: 0px;
                left: 0px;
                width: 100%;
                height: 100%;
                text-align: center;
                transition: all ease-in-out 0.3s;
                opacity: 0;
                font-size: 70px;
                padding-top: 113px;
                background-color: rgba(0, 0, 0, .3);
                color: rgba(255,255,255,.7);
            }
        }
        .title {
            margin: 16px auto 10px;
            width: 80%;
            white-space: nowrap;
            display: block;
            overflow: hidden;
            font-size: 18px;
            text-overflow: ellipsis;
            text-align: center;
            &::after {
                content: " ";
                display: block;
                height: 3px;
                width: 40px;
                background-color: #00b19d;
                margin: 10px auto;
            }
        }
        .desc {
            color: #98a6ad;
            max-height: 45px;
            overflow: hidden;
            margin-bottom: 10px;
        }
        &:hover {
            .thumb {
                .fa-search {
                    opacity: 1;
                }
            }
        }
    }
}

.tab-box {
    .tab-header {
        border-bottom: 1px solid #ddd;
        height: 42px;
        .tab-item {
            color: #555;
            cursor: default;
            height: 42px;
            line-height: 40px;
            &.active {
                color: #000;
                background-color: #fff;
                border: 1px solid transparent;
                border-bottom-color: #f90;
            }
            &:hover {
                text-decoration: none;
                background-color: #eee;
            }
        }
    }
    .tab-body {
        margin: 15px 0;
    }
}

.thumb-box {
    display: grid;
    grid-template-columns: 117px 1fr;
    grid-gap: 20px;
}

.list-box {
    padding-left: 10px;
    li {
        margin-bottom: 10px;
        a {
            height: 20px;
            line-height: 20px;
            display: block;
            overflow: hidden;
            span {
                float: right;
            }
        }
        em {
            display: inline-block;
            vertical-align: 2px;
            width: 5px;
            height: 5px;
            background: #8BBEE4;
            border-radius: 50%;
            margin-right: 10px;
        }
    }
}

.right-box {
    margin-top: 20px;
    .panel {
        .header {
            font-size: 18px;
            border-bottom: 1px solid #dcdcdc;
            padding-bottom: 10px;
            margin-bottom: 10px;
        }
        ul {
            li {
                font-size: 14px;
                padding: 20px 0;
                border-bottom: 1px solid #f0f0f0;
                font-weight: 400;
            }
        }
    }
    .top-panel {
        ul {
            li {
                position: relative;
                padding: 5px 0;
            }
        }
        .item-top {
            background: #ED4138;
            border: 1px solid #db2b28;
            display: inline-block;
            width: 20px;
            height: 20px;
            color: #fff;
            text-align: center;
            margin-right: 20px;
        }
        .item-score {
            float: right;
        }
    }
}

.tree-box {
    li {
        line-height: 40px;
        padding: 0 10px;
    }
}

.panel {
    .panel-header {
        line-height: 40px;
        background-color: #fff;
        padding: 0 10px;
        border-bottom: 1px solid #f90;
        .more {
            float: right;
        }
    }
    .panel-body {
        .item {
            display: grid;
            grid-template-columns: 80px 1fr;
            .thumb {
                img {
                    width: 100%;
                    height: 100%;
                }
            }
            .info {
                .title {
                    line-height: 30px;
                    font-weight: 600;
                    color: #333;
                }
                .desc {
                    color: #666;
                }
            }
        }
    }
}

.site-bg {
    min-height: 300px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.search-box {
    position: relative;
    margin: 30px auto 40px;
    width: 700px;
    .search-tips,
    .search-engine {
        display: none;
    }
    .search-input {
        position: relative;
        .search-icon {
            position: absolute;
            left: 3px;
            top: 5px;
            width: 40px;
            height: 40px;
            overflow: hidden;
            border-radius: 25px;
            background-size: 100%;
            cursor: pointer;
        }
        input {
            width: 100%;
            height: 50px;
            line-height: 50px;
            font-size: 16px;
            color: #999;
            border: none;
            outline: none;
            padding: 0 45px;
            border: 1px solid #e6e6e6;
        }
        .search-btn {
            position: absolute;
            right: 0;
            top: 0;
            width: 50px;
            line-height: 48px;
            background: transparent;
            border: none;
            font-size: 25px;
            color: #ddd;
            font-weight: bold;
            outline: none;
            padding: 0 10px;
        }
    }
    .search-tips {
        position: absolute;
        z-index: 100;
        width: 100%;
        border-radius: 0 0 10px 10px;
        background: #FFF;
        box-shadow: 0px 4px 5px 0px #cccccc94;
        overflow: hidden;
        ul {

        }
        li {
            border-top: 1px solid #f2f2f2;
            line-height: 30px;
            font-size: 14px;
            padding: 0px 25px;
            color: #777;
            cursor: pointer;
            span {
                display: inline-block;
                width: 20px;
                height: 20px;
                font-size: 12px;
                line-height: 20px;
                text-align: center;
                background: #e5e5e5;
                margin-right: 10px;
                border-radius: 10px;
                color: #999;
            }
            &.active {
                background-color: rgba(#999,.1);
            }
        }
    }
    .search-engine {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #FFF;
        padding: 15px 0 0 15px;
        border-radius: 5px;
        box-shadow: 0px 5px 20px 0px #d8d7d7;
        transition: all 0.3s;
        z-index: 999;
        .search-engine-header {
            padding-right: 10px;
            .search-engine-tool {
                float: right;
            }
        }
        .search-engine-body {
            li {
                display: inline-block;
                width: 140px;
                margin: 0 15px 15px 0;
                line-height: 30px;
                font-size: 14px;
                padding: 5px 10px 5px 10px;
                background: #f9f9f9;
                color: #999;
                cursor: pointer;
                span {
                    width: 25px;
                    height: 25px;
                    border-radius: 15px;
                    float: left;
                    margin-right: 5px;
                    margin-top: 2.5px;
                    background-size: 100%;
                }
            }
        }
    }
    .toggle-box {
        font-family: "Font Awesome 5 Free";
        -webkit-font-smoothing: antialiased;
        display: inline-block;
        font-style: normal;
        font-variant: normal;
        text-rendering: auto;
        line-height: 1;
        font-weight: 900;
        vertical-align: text-bottom;
        font-size: 20px;
        &::before {
            content: "\f204";
        }
        &.checked {
            &::before {
                content: "\f205";
                color: #5cb85c;
            }
        }
    }
}

.self-box {
    background-color: #fff;
    margin-bottom: 10px;
    .custom-btn,
    .add-btn {
        float: right;
    }
    .add-btn {
        display: none;
    }
    .group-item {
        display: grid;
        grid-template-columns: 70px 1fr;
        grid-gap: 10px;
        .group-name {
            line-height: 50px;
            text-align: right;
            font-weight: 700;
        }
    }
    .site-item {
        display: inline-block;
        text-align: center;
        line-height: 45px;
        border-radius: 3px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        transition: all 0.3s ease;
        width: 120px;
        .fa {
            display: none;
        }
        &:hover {
            color: #FFF;
            font-size: 16px;
            font-weight: bold;
            background: #6b7184;
        }
    }
    .panel-footer {
        background: #6b7184;
        height: 0;
        line-height: 35px;
        text-align: center;
        overflow: hidden;
        transition: all .2s;
        .btn {
            display: inline-block;
            margin: 30px 15px;
            padding: 0 20px;
            color: rgba(255, 255, 255, 0.60);
            border: 2px solid rgba(255, 255, 255, 0.6);
            background-color: transparent;
            border-radius: 5px;
            cursor: pointer;
            transition: all .2s;
            &:hover {
                color: #6b7184;
                border-color: #fff;
                background: #fff
            }
            &.panel-close {
                color: #6b7184;
                border-color: #fff;
                background: #fff;
            }
        }
    }
    &.edit-mode {
        .add-btn {
            display: block;
        }
        .panel-footer {
            height: 100px;
        }
        .site-item {
            .fa {
                display: inline-block;
            }
        }
    }
}

#add-box {
    .dialog-body {
        width: 400px;
        height: 150px;
    }
}

.icon-baidu {
    background-image: url(../images/icon/baidu.png);
}

.icon-bing {
    background-image: url(../images/icon/bing.png); 
}
.icon-google {
    background-image: url(../images/icon/google.png);
}
.icon-github {
    background-image: url(../images/icon/github.png);
}
.icon-bilibili {
    background-image: url(../images/icon/bilibili.png);
}
.icon-jd {
    background-image: url(../images/icon/jd.png);
}
.icon-taobao {
    background-image: url(../images/icon/taobao.png);
}
.icon-duckduckgo {
    background-image: url(../images/icon/duckduckgo.png);
}

.site-panel {
    .site-item {
        display: inline-block;
        width: 230px;
        padding: 10px 10px;
        border-radius: 5px;
        background-color: #fafafa;
        margin-bottom: 10px;
        position: relative;
        .item-name {
            height: 30px;
            font-size: 12px;
            font-weight: 700;
            color: #30333C;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: normal;
            transition: all .3s;
        }
        img {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin-right: 10px;
            vertical-align: middle;
        }
        .item-desc {
            color: #A1A7B7;
            height: 42px;
            overflow: hidden;
        }
        .go-btn {
            position: absolute;
            right: 0;
            bottom: 0;
            font-size: 30px;
        }
        &:hover {
            background: #6b7184;
            .item-name,
            .go-btn,
            a {
                color: #fff;
            }
            .item-desc {
                color: #c0c8dc;
            }
            .go-btn {
                bottom: 20px;
                font-size: 40px;
            }
        }
    }
}

.left-bar {
    .site-header {
        padding: 11px 0px;
        border-bottom: none;
        margin: 0 25px;
        padding-top: 15px;
    }
    .site-menu {
        border-top: 1px solid #f2f2f2;
        a {
            display: block;
            height: 35px;
            line-height: 35px;
            font-size: 14px;
            color: #6b7184;
            padding-left: 38px;
        }
    }
}

.game-panel {
    .panel-body {
        .item {
            display: inline-block;
            width: 150px;
            text-align: center;
            .title {
                line-height: 30px;
            }
        }
    }
}


@media (max-width: 1200px){
    .container {
        width: 100%;
    }
}

@media (max-width: 768px){
    header {
        .nav-bar {
            >ul {
                display: none;
            }
            .nav-toggle {
                display: inline-block;
            }
            li {
                a {
                    display: block;
                }
            }
            &.open {
                float: none;
                .nav-toggle {
                    position: absolute;
                    right: 10px;
                    top: 0;
                    &::before {
                        content: "\f00d";
                    }
                }
                >ul {
                    display: block;
                    >li {
                        display: block;
                        border-bottom: 1px #ccc dashed;
                        >a {
                            margin: 0;
                        }
                        .sub-menu {
                            box-shadow: inset 0px 5px 5px -5px #000,
                                        inset 0px -5px 5px -5px #000;
                            display: block;
                            position: static;
                        }
                    }
                }
            }
        }
    }
    .search-box {
        width: 100%;
    }
    .site-bg {
        padding-top: 10px;
    }

    #content-list {
        .item {
            grid-template-columns: 103px 1fr;
            height: 90px;
            .thumb {
                width: 99px;
                height: 66px;
            }
            .info {
                .title {
                    max-height: 44px;
                    overflow: hidden;
                    font-size: 16px;
                }
                .desc {
                    display: none;
                }
            }
        }
    }
}